<?php $this->load->view('inc/header.php');?>
<?php $this->load->view('model/inc_sm.php');?>

<div class="col-right">
	<div class="opt">
		<a class="wm-ajax" 
			wmtitle="新的模型"
			wmw="500"
			wmh="300"
			href="<?php echo site_url('c=model&m=add');?>">新的模型</a>
	</div>

	<div class="box">
		<div class="box-t">模型列表</div>
		<div class="box-c">
			<table class="tbl-list">
				<thead>
					<tr>
						<th width="200">标题</th>
						<th width="200">标识</th>
						<th>备注</td>
						<th width="200">操作</th>
					</tr>
				</thead>
				<tbody>
					<?php foreach ($list_model as $k => $v) :?>
					<tr>
						<td><?php echo $v->title;?></td>
						<td><?php echo $v->mark;?></td>
						<td><?php echo $v->memo;?></td>
						<td>
	
							<a class="wm-ajax" 
								wmtitle="编辑分类"
								wmw="500"
								wmh="300"
								href="<?php echo site_url('c=model&m=edit&id='.$v->id);?>">编辑</a>
							&nbsp;

							<a href="<?php echo site_url('c=model&m=view_attr&id='.$v->id);?>">查看属性</a>
							&nbsp;

							<a class="btn-ajax-confirm" msg="模型里的所有数据将同时被删除，确定要删除吗？" 
								href="<?php echo site_url('c=model&m=del_do&id='.$v->id);?>">删除</a>

						</td>
					</tr>
					<?php endforeach;?>
				</tbody>
			</table>
		</div>
	</div>
</div>

<?php $this->load->view('inc/footer.php');?>
